package com.whuan.user.service;


import com.whuan.user.dataObject.ProductInfo;
import com.whuan.user.dto.CartDTO;

import java.util.List;

/**
 * Created by 廖师兄
 * 2017-12-09 21:57
 */
public interface ProductService {

    /**
     * 查询所有在架商品列表
     */
    List<ProductInfo> findUpAll();

    /*根据商品id查询商品信息*/
    List<ProductInfo> findListByProList(List<String> productIdList);

    /**
     * 扣库存
     */
    void decreaseStock(List<CartDTO> cartDTOList);
}
